package com.googlecode.gaal.suffix.algorithm.api;

import com.googlecode.gaal.data.api.IntSequence;

/**
 * An interface for algorithms that build suffix tables
 * 
 * @author alex
 * 
 */
public interface SuffixTableBuilder {
    /**
     * Construct suffix table for the given corpus
     * 
     * @param text
     *            the text
     * @param alphabetSize
     *            the size of an alphabet
     * @return the suffix table
     */
    public int[] buildSuffixTable(IntSequence text, int alphabetSize);
}
